package com.lagou.controller;

import com.lagou.vo.MachineStatus;
import com.lagou.vo.ResponseContent;
import com.lagou.vo.UserInfo;
import com.lagou.vo.UserMatchInfo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.Date;

/**
 * @author: wudong
 * @create: 2021-08-03 18:04
 **/
@Controller
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/info")
    @ResponseBody
    public ResponseContent result(HttpSession session, HttpServletRequest request){
        return ResponseContent.buildSuccessResponseContent(UserMatchInfo.buildFromSession(session,request));
    }


}
